<template>
  <q-page :class="$q.screen.xs ? '' : 'q-pa-md'">
    <managerDash v-if="userInfo.tenant_id === 0" />
    <tenantDash v-if="userInfo.tenant_id > 0" />
  </q-page>
</template>

<script>
import { defineComponent, ref } from 'vue';
import { useStore } from 'stores/store';
import { mapState, mapActions } from 'pinia';
import managerDash from './managerDashboard.vue';
import tenantDash from './tenantDashboard.vue';

export default defineComponent({
  name: 'dashboardPage',
  components: {
    managerDash,
    tenantDash
  },
  data () {
    return {
    }
  },
  mounted () {
  },
  methods: {
  },
  computed: {
    ...mapState(useStore, ['userInfo'])
  }
});
</script>
